<template>
  <div class="mui-content">
    <transition name="fade">
    <div class="myRating" >
      <div class="ratContent">
        <div class="title">{{titleConfirm}}</div>
        <div class="msg">
          {{msgConfirm}}
        </div>
        <!--<div class="foot" ><div @click="submit">{{confirm}}</div></div>-->
        <div class="foot" ><div @click="giveUp">取消</div><div @click="submit">确定</div></div>
      </div>
    </div>
    </transition>
  </div>

</template>

<script>
  export default {
    name: "Prompt.vue",
    props:{
      titleConfirm:String,
      msgConfirm:String,
      confirm:String
    },
    methods:{
      submit(){
        this.$emit("sure")
      },
      giveUp(){
        this.$emit("giveUp")
      }
    }
  }

</script>

<style scoped>
  .mui-content .myRating{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color:rgba(111,111,111,0.8);
    left: 0;
    top:0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

  }
  .mui-content .myRating .ratContent{
    width: 14rem;
    min-height: 9rem;
    background-color: white;
    line-height: 100%;
    text-align: center;
    border-radius: 6px;
  }
  .mui-content .myRating .ratContent .title{
    height:3rem;
    line-height: 3.9rem;
    font-size: 1.2rem;
    color: black;
  }

  .mui-content .msg{
    padding-left: 1rem;
    width: 13rem;
    min-height: 3.5rem;
    line-height: 1.7rem;
    overflow: hidden;
    font-size: 0.9rem;
    color: #8f8f94;
  }

  .mui-content .myRating .ratContent .foot div{
    float: left;
    width: 50%;
    text-align: center;
    border-top: 1px solid rgba(111,111,111,0.2);
    height: 2.5rem;
    line-height: 2.5rem;
    color: #57bbfa;
    position: relative;
    font-size: 0.9rem;
    margin-top: -5px;
  }
  .mui-content .myRating .ratContent .foot div:first-child:after{
    content: '';
    position: absolute;
    right: 0;
    top: 28%;
    left: auto;
    bottom: auto;
    width: 1px;
    height: 44%;
    background-color: #b5b5b5;
    display: block;
    z-index: 15;
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
  }


</style>
